Migrate from Pagex/Voidcannon to Astro 5 SSG#31
Open
juthing wants to merge 10 commits into
Open
Conversation
Remplace le stack PageX/Voidcannon par une architecture propre :
- Framework Astro 5 (SSG statique)
- Composants @material/web via CDN importmap
- Contenu JSON/Markdown dans /content/
- i18n fr/en auto-détectée + switcher manuel
- Thématisation MD3 dynamique par couleur seed
- Pages : accueil, article, auteur, collection, 404
- Redirections /{id} → /articles|authors|collections/{id}
- Index de recherche JSON + client-side search
- API Discord au build pour les champs "DISCORD"
- Design calqué sur les maquettes /examples/
- Documentation complète dans /docs/
- CLAUDE.md pour sessions futures
https://claude.ai/code/session_01VoeFttV1L6oTb2vFVbhrpN
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Complete rewrite of all layout and page components to mirror the exact HTML/CSS structure from the /examples/ maquette files, replacing blognutty branding with Moddy Docs content system. Key structural changes: - Nav: logo + "/" breadcrumb + page slug + theme toggle only - Home: editorial intro + xYSxXU section header + wUTVKK card grid - ArticleCard: vNoZxk/uPd4UK/zv98UQ/uHxFYS/wCqovU exact structure - Article page: yzxB9O header (512px) + voRrnK image + single-column prose - Author page: ykKuca/yCfcFC/zMARbA avatar card + w1fZiO links + w2Ym6Y grid - Collections page: vQDqKq/xrrrHQ/vCEVuQ icon box + vFPEhk grid - Footer: site-footer with icon buttons + logo link https://claude.ai/code/session_01VoeFttV1L6oTb2vFVbhrpN
esm.run CDN is blocked by network policy, causing all @material/web components (md-icon, md-text-button, etc.) to fail loading and show plain text instead of rendered components. - Install @material/web as npm dependency - Replace CDN importmap with Astro-bundled script imports - Remove nav border-bottom to match maquette (borderless nav) - Simplify LabelChip to exact maquette pattern https://claude.ai/code/session_01VoeFttV1L6oTb2vFVbhrpN
Remove 726px max-width constraint on article title and prose content so text spans the full content area instead of being left-aligned in a narrow column. https://claude.ai/code/session_01VoeFttV1L6oTb2vFVbhrpN
Updated author information in juthing.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Complete migration of the documentation site from a custom Pagex/Voidcannon-based system to Astro 5 with Material Design 3 components. This modernizes the tech stack, improves maintainability, and provides a cleaner content structure.
Key Changes
@material/web(Material Design 3) via CDN with importmap for modern UI components.pagex.jsfiles to JSON metadata + Markdown:meta.json+fr.md+en.mdper article/articles/[id]- Article detail pages with bilingual support (FR/EN)/authors/[id]- Author profile pages with article listings/collections/[id]- Label/collection pages with filtered articles/- Home page with featured articles and search index/[slug]- Catch-all redirect for canonical URL handling/404- Custom 404 pagetranslations.ts/search-index.jsonendpoint for client-side search functionalityImplementation Details
src/utils/content.ts(filesystem-based)Removed
https://claude.ai/code/session_01VoeFttV1L6oTb2vFVbhrpN